package com.hdoit.apollo.web.cargo.modelconfig;


import com.hdoit.apollo.web.cargo.providers.StandardProvider;
import com.tennetcn.web.component.attribute.DisplayNameAttribute;
import com.tennetcn.web.component.attribute.DropDownListAttribute;
import com.tennetcn.web.component.attribute.RequiredAttribute;
import com.tennetcn.web.component.attribute.base.ModelMetadataAttributeConfiguration;

/**
 * @author      humaoshu
 * @email       
 * @createtime  2018年04月26日 11:41:24
 * @comment
 */
public class StandardPropertyConfig extends ModelMetadataAttributeConfiguration{
    public StandardPropertyConfig(){
        this.setProperty("propertyName")
            .hasAttribute(new DisplayNameAttribute("规格值"))
            .hasAttribute(new RequiredAttribute("必填"));
        this.setProperty("comment")
        	.hasAttribute(new DisplayNameAttribute("备注"));

        this.setProperty("shopId")
            .hasAttribute(new DisplayNameAttribute("门店id"));
        
        this.setProperty("standardId")
        	.hasAttribute(new DisplayNameAttribute("规格名称"))
        	.hasAttribute(new DropDownListAttribute(new StandardProvider()))
        	.hasAttribute(new RequiredAttribute("必填"));
    }
}